import Layout from "@/layouts/layout-index.vue";
import {RouteRecordRaw} from "vue-router";

// 用户管理模块的路由配置
export default {
    path: '/demo',
    // 所有路由的命名都必须是唯一的。如果为多条路由添加相同的命名，路由器只会保留最后那一条。
    name: 'Demo',   // 命名路由，优点 https://router.vuejs.org/zh/guide/essentials/named-routes.html
    component: Layout,
    meta: {
        order: 9,
        title: "Demo管理",
        icon: 'UserFilled',
        // 只有经过身份验证的用户才能创建帖子
        requiresAuth: false,
    },
    children: [
        {
            path: '/demo/checkbox',
            name: 'DemoCheckbox',
            component: () => import('@/views/demo/CheckBoxDemo.vue'),
            meta: {
                title: "Checkbox示例",
            },
        },
        {
            path: '/demo/fireworks',
            name: 'DemoFireworks',
            component: () => import('@/views/demo/FireworkDemo.vue'),
            meta: {
                title: "Checkbox示例",
            },
        },
    ],
} as RouteRecordRaw;
